use axum::extract::DefaultBodyLimit;
use axum::Router;
use crate::config::config_route::configure_routes;
use crate::config::cores::{configure_cors, limit_layer};
use crate::models::AppState::AppState;

pub async fn configure_app() -> Router {
    let cors =  configure_cors();
    let routes = configure_routes().await;
    let limit = limit_layer();
    routes.layer(cors).layer(DefaultBodyLimit::disable()).layer(limit)
    //加一个公共参数
}
